//
//  Agilent34410A.h
//  DMMCalibration
//
//  Created by apple on 17/2/25.
//  Copyright © 2017年 microtest.org. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <VISA/VISA.h>

@interface Agilent34410A : NSObject
{
    char instrDescriptor[VI_FIND_BUFLEN];
    ViUInt32 numInstrs;
    ViFindList findList;
    ViSession defaultRM, instr;
    ViStatus status;
    ViUInt32 retCount;
    ViUInt32 writeCount;
}

@property(readonly) BOOL opened;

-(BOOL) OpenDevice;
-(void) CloseDevice;
-(BOOL) Find;
-(void)SetMode:(NSString*)mode;
-(BOOL) sendCommand:(NSString*) cmd;
-(NSString*)readDataWithCountOfByte:(int)readDataCount;
-(NSString *)readDataByCommand:(NSString *) cmd;

@end

